import md5  
import time


def getFileMd5(path):
    m = md5.new()
    with open(path, "rb") as f:
        while True:
            buf = f.read(40960)
            if len(buf) <= 0:
                break
            
            m.update(buf)
            time.sleep(0.1)
            
    return m.hexdigest()
    
    
